package com.pms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pms.dao.PackagesMapper;
import com.pms.domain.Packages;
import com.pms.service.PackagesService;

@Service
public class PackagesServiceImpl implements PackagesService {
	
	@Autowired
	PackagesMapper packagesMapper;

	@Override
	public void insertPackages(Packages pkg) {
		packagesMapper.insertPackages(pkg);
	}

	@Override
	public Packages selectByPackageId(String packageId) {
		return packagesMapper.selectByPackageId(packageId);
	}

	@Override
	public void updateByPackageId(Packages pkg) {
		packagesMapper.updateByPackageId(pkg);
	}

	@Override
	public List<Packages> getAll() {
		return packagesMapper.getAll();
	}

	@Override
	public void deleteByPackageId(String packageId) {
		packagesMapper.deleteByPackageId(packageId);
	}

	

}
